import Qt 4.7

Item {
	id: progresDialog
	width: 300
	height: 100

	property alias text: progresText.text

	Rectangle {
		id: background
		anchors.fill: parent
		color: "black"

		border.color: "white"
		border.width: 1
	}

	Text {
		id: progresText

		text: ""

		width: parent.width - 40
		anchors.horizontalCenter: parent.horizontalCenter
		anchors.top: parent.top
		anchors.topMargin: 20
		color: "white"

		font.pixelSize: 20
	}

	Image {
		id: indicatorImg
		source: "pics/indicator.png"

		anchors.bottom: parent.bottom
		anchors.bottomMargin: 10
		anchors.horizontalCenter: parent.horizontalCenter

		RotationAnimation {
			target: indicatorImg;
			running: true
			loops: Animation.Infinite
			duration: 1000
			direction: RotationAnimation.Clockwise
			from: 0
			to: 360
		}
	}
}
